package com.lzy.product.apis.impl;

import com.lzy.product.apis.AgentProtocolYieldRatioServiceApi;
import com.lzy.product.dtos.agent.AgentProtocolYieldRatioDto;
import com.lzy.product.service.AgentProtocolYieldRatioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2018/04/14.
 */
@Service
public class AgentProtocolYieldRatioServiceApiImpl implements AgentProtocolYieldRatioServiceApi {

    @Autowired
    AgentProtocolYieldRatioService agentProtocolYieldRatioService;

    @Override
    public Long insert(AgentProtocolYieldRatioDto dto) {
        return agentProtocolYieldRatioService.insert(dto);
    }

    @Override
    public Boolean update(AgentProtocolYieldRatioDto dto) {
        return agentProtocolYieldRatioService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return agentProtocolYieldRatioService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return agentProtocolYieldRatioService.remove(id);
    }

    @Override
    public AgentProtocolYieldRatioDto findById(Long id) {
        return agentProtocolYieldRatioService.findById(id);
    }

    @Override
    public List<AgentProtocolYieldRatioDto> query(AgentProtocolYieldRatioDto dto) {
        return agentProtocolYieldRatioService.query(dto);
    }

    @Override
    public List<AgentProtocolYieldRatioDto> selectByProtocolId(Long protocolId) {
        return agentProtocolYieldRatioService.selectByProtocolId(protocolId);
    }

    @Override
    public Boolean deleteByProtocolId(Long protocolId) {
        return agentProtocolYieldRatioService.deleteByProtocolId(protocolId);
    }
}
